import org.hibernate.Session;

import com.ddutra9.sistemas.vendas.HibernateUtil;


public class Conecta {
	
	public static void main(String[] args) {
		Session session = null;
		try {
			session = HibernateUtil.getSf().openSession();
			System.out.println("conectou");
		} finally{
			if(session.isOpen()){
				session.close();
				System.out.println("fechou sessao");
			}
		}
	}

}
